public class demo1 {
    public  static  class Employee {
        private int ID;
        private String name;
        private double basicSalary;
        private double bonus;

        public Employee() {

        }
           public Employee(int ID, String name, double basicSalary, double bonus) {
                this.ID=ID;
                this.name=name;
                this.basicSalary=basicSalary;
                this.bonus=bonus;
            }

          public int getID(){
            return ID;
          }
          public void setID(int ID){
            this.ID=ID;
          }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public double getBasicSalary() {
            return basicSalary;
        }

        public void setBasicSalary(double basicSalary) {
            this.basicSalary = basicSalary;
        }

        public double getBonus() {
            return bonus;
        }

        public void setBonus(double bonus) {
            this.bonus = bonus;
        }

        public double getTax(double basicSalary,double bonus){
            if(basicSalary+bonus>1600){
                return (basicSalary-bonus-1600)*15/100;
            }
            return 0;
        }
        public double qian(double basicSalary,double bonus){
            return bonus+basicSalary+getTax(basicSalary,bonus);
        }

        @Override
        public String toString() {
            return "Employee{" +
                    "ID=" + ID +
                    ", name='" + name + '\'' +
                    ", basicSalary=" + basicSalary +
                    ", bonus=" + bonus +
                    '}';
        }
    }
    public static void main(String []args){
        Employee employee=new Employee(33,"lxc",1800.8,520.2);
        System.out.println(employee.toString());

    }


}
